using UnityEngine;

public class AnnouncementUI : MonoBehaviour
{
    [SerializeField] private TMPro.TMP_Text text;
    [SerializeField] private Animator animator;

    public bool IsLoaded { get; private set; }

    public void SetMessage(string msg)
    {
        text.text = msg;
    }

    public void SetLoaded(bool loaded)
    {
        IsLoaded = loaded;
        if (animator != null)
            animator.SetBool("Loaded", loaded);
    }
}
